package com.chefu.evaluation.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.IndexDirection;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Data
@Document("parts_order_evaluation")
@ApiModel(value = "PartsOrderEval对象", description="")
public class PartsOrderEval implements Serializable {
    @Id
    @ApiModelProperty(value = "主键")
    private String id;
    //配件订单号
    @ApiModelProperty(value = "配件订单号")
    private String orderId;
    //配件商id
    @ApiModelProperty(value = "配件商id")
    private String providerId;
    //配件商
    @ApiModelProperty(value = "配件商")
    private String providerName;
    //订单时间
    @ApiModelProperty(value = "订单时间")
    private Date orderTime;
    //评价时间
    @ApiModelProperty(value = "评价时间")
    @Indexed(direction = IndexDirection.DESCENDING)
    private Date createTime;
    //客户id
    @ApiModelProperty(value = "客户id")
    private String carOwnerId;
    //客户
    @ApiModelProperty(value = "客户")
    private String carOwnerName;
    //平均得分
    @ApiModelProperty(value = "平均得分")
    private Double score;
    //评价得分
    @ApiModelProperty(value = "评价得分")
    private Double[] scores;
    //评价内容
    @ApiModelProperty(value = "评价内容")
    private String content;
    //图片
    @ApiModelProperty(value = "图片")
    private String[] images;
    //配件项目
    @ApiModelProperty(value = "配件项目")
    private String partsItem;
    //配件费用
    @ApiModelProperty(value = "配件费用")
    private Double totalFee;
    //状态, 0正常, 1锁定
    @ApiModelProperty(value = "状态")
    private String state;
}
